package com.scs.application.modules.base.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.modules.base.dto.CategoryToMscmDTO;
import com.scs.application.modules.base.entity.MatrCategory;
import com.scs.application.core.mapper.IBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 */
public interface MatrCategoryMapper extends IBaseMapper<MatrCategory> {

    Page<?> pageWithCategory(IPage page,
                             @Param(Constants.WRAPPER) QueryWrapper<MatrCategory> wrapper,
                             @Param("params") Map<String,Object> params);

    List<CategoryToMscmDTO> getCategoryToMscm();
}
